﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Client_test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void connectBTN_Click(object sender, EventArgs e)
        {
            ClientAPI.ClientAPI.Connect("zedd-pc");
        }

        private void disconnectBTN_Click(object sender, EventArgs e)
        {
            ClientAPI.ClientAPI.Disconnect();
        }

        private void loginBTN_Click(object sender, EventArgs e)
        {
            ClientAPI.ClientAPI.Login(userTXT.Text, passTXT.Text);
        }

        private void downloadBTN_Click(object sender, EventArgs e)
        {
            ClientAPI.ClientAPI.Download("Tester.txt");
        }

        private void sendBTN_Click(object sender, EventArgs e)
        {
            ClientAPI.ClientAPI.SendFile(locationTXT.Text,fileTXT.Text, "Blank");
        }
    }
}
